<?php
$this->breadcrumbs=array(
	'Dict Battery Sorts'=>array('admin'),
	'管理',
);


Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$(this).toggleClass('collapse');
	$('fieldset').toggleClass('collapsed');
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('dict-battery-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<div id="page-header">
	<h1>管理<?php echo $this->moduleName; ?></h1>
    <div id="page-options">
	<?php $this->renderPartial('_menu',array(
    'model'=>$model,
    )); ?>
    </div>
</div>


<?php $this->renderPartial('_search',array(
'model'=>$model,
)); ?>


<section class="grid_9" id="dashtabs">
<div class="box-header">
  <?php echo $this->moduleName."列表"; ?></div>
<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'dict-battery-sort-grid',
	'dataProvider'=>$model->search(),
//	'filter'=>$model,
	'columns'=>array(
array(
		'header' => '流水号',
		'value' => '$row + 1',
),
		'SORTNAME_V',
		'REMARK_V',
//		'CREATE_DATE',
		array(
			'class'=>'CButtonColumn',
            'viewButtonImageUrl'=> Yii::app()->request->baseUrl.'/css/img/icons/16/page.png',            
            'updateButtonImageUrl'=> Yii::app()->request->baseUrl.'/css/img/icons/16/page_edit.png',
            'deleteButtonImageUrl'=> Yii::app()->request->baseUrl.'/css/img/icons/16/page_delete.png',
		),
	),
    'template'=>'{items}{summary}{pager}',
    'htmlOptions'=>array(
    	'class'=>'cgridview'
    ),
    'cssFile' => Yii::app()->request->baseUrl.'/css/widgets/cgridview.css',
)); ?>
</section>